package com.example.master.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface CommentMapper {

    @Select("select AVG(`range`)from tb_comment where seller_id = #{sellerId}")
    Float getCreditRating(@Param("sellerId") Integer sellerId);
}
